package cn.inbot.shopadmin.app;

import android.os.Environment;

import cn.inbot.lib.framework.PBAppEnviroment;
import cn.inbot.lib.framework.PBApplication;
import cn.inbot.lib.framework.util.AppUtil;

/**
 * Created by shisenkun on 2021/5/10.
 */
public class AppConfig {

    //派宝服务器地址
    public static String PADBOT_SERVER_URL = "";
    //websync服务ip
    public static String WEB_SYNC_SERVER_IP = "";
    //头像url前缀
    public static String HEADPORTRAIT_URL_PREFIX = "";

    public static String APP_VERSION = "";

    static {
        if(PBAppEnviroment.INSTANCE.isProduct()) {
            PADBOT_SERVER_URL = "http://s.padbot.cn:9080/cloud/";
            WEB_SYNC_SERVER_IP = "http://w.padbot.cn:8071/websync.ashx";
            HEADPORTRAIT_URL_PREFIX = "http://s.padbot.cn:9080/cloud/cloudserver/downloadImage.action?id=";
        }else {
            PADBOT_SERVER_URL = "http://st.padbot.cn:9080/cloud/";
            WEB_SYNC_SERVER_IP = "http://wt.padbot.cn:8071/websync.ashx";
            HEADPORTRAIT_URL_PREFIX = "http://st.padbot.cn:9080/cloud/cloudserver/downloadImage.action?id=";
        }

        APP_VERSION = AppUtil.getVersionName(PBApplication.appContext);
    }

    //app key demo中使用过派宝管理助手的appkey
    public static String APP_KEY = "8277e0910d750195b448797616e091ad";

    //app type demo中使用过派宝管理助手的apptype
    public static String APP_TYPE = "d";

    // app token demo中使用过派宝管理助手的apptoken
    public static String APP_TOKEN = "3944559f9a0110bfa269c0215a92b610";

    //app品牌 demo中使用过派宝管理助手的app平排
    public static String REGISTER_APP = "TELABOT";

    //app显示宽度基准值,具体根据高保真图尺寸来设置
    public static float APP_DISPLAY_WIDTH_DP_DATUM = 375F;

    //存储目录
    public static String CACHE_DIR = Environment.getExternalStorageDirectory().getAbsolutePath() + "/InbotShopAdmin";
    //log存储路径
    public static String CACHE_DIR_LOG = CACHE_DIR + "/logs";

}
